package com.cskaoyan.bean;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Past;
import java.util.Date;

/**
 * @author stone
 * @date 2021/11/24 11:38
 */
@Data
public class User {
    @Length(min=6,max = 10)
    String username;
    @Length(min = 6)
	String password;
    @Min(18)
    @Max(100)
    @NotNull
	Integer age;
    @Past
	Date birthday;
	
}
